package visiopuce.objets;

public class TypeAnalyse {
	/**
	 * 
	 */

	private Integer idTypeAnalyse;

	private String libelle;

	public TypeAnalyse() {
	}
	public TypeAnalyse(String libelle) {
		this.libelle = libelle;
	}


	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		TypeAnalyse other = (TypeAnalyse) obj;
		if (idTypeAnalyse == null) {
			if (other.idTypeAnalyse != null)
				return false;
		} else if (!idTypeAnalyse.equals(other.idTypeAnalyse))
			return false;
		return true;
	}

	public Integer getIdTypeAnalyse() {
		return idTypeAnalyse;
	}

	public String getLibelle() {
		return libelle;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((idTypeAnalyse == null) ? 0 : idTypeAnalyse.hashCode());
		return result;
	}

	public void setIdTypeAnalyse(Integer idTypeAnalyse) {
		this.idTypeAnalyse = idTypeAnalyse;
	}

	public void setLibelle(String libelle) {
		this.libelle = libelle;
	}
	
}
